package com.ruoyi.disk.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户备份对象 sys_backup
 * 
 * @author ruoyi
 */
public class SysBackup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 备份ID */
    private String backupId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 备份时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "备份时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date backupTime;

    /** 文件数量 */
    @Excel(name = "文件数量")
    private Integer fileCount;

    /** 备份大小 */
    @Excel(name = "备份大小")
    private Long backupSize;

    /** 备份状态（0正常 1进行中 2失败） */
    @Excel(name = "备份状态", readConverterExp = "0=正常,1=进行中,2=失败")
    private String status;

    public String getBackupId() {
        return backupId;
    }

    public void setBackupId(String backupId) {
        this.backupId = backupId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getBackupTime() {
        return backupTime;
    }

    public void setBackupTime(Date backupTime) {
        this.backupTime = backupTime;
    }

    public Integer getFileCount() {
        return fileCount;
    }

    public void setFileCount(Integer fileCount) {
        this.fileCount = fileCount;
    }

    public Long getBackupSize() {
        return backupSize;
    }

    public void setBackupSize(Long backupSize) {
        this.backupSize = backupSize;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("backupId", getBackupId())
            .append("userId", getUserId())
            .append("backupTime", getBackupTime())
            .append("fileCount", getFileCount())
            .append("backupSize", getBackupSize())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 